package com.ruoyi.web.controller.enums;

import java.util.ArrayList;
import java.util.List;

/**
 * 审批状态
 */
public enum ExamineFlagEnum {

    INIT(1,"未提交"),
    SUBMIT(2,"已提交未审批"),
    PRELIMINARY_REFUSE(3,"初审未通过"),
    PRELIMINARY_EXAMINE(4,"初步审批通过"),
    FINAL_REFUSE(5,"终审未通过"),
    FINAL_EXAMINE(6,"最终审批通过");

    private Integer code;
    private String desc;

    ExamineFlagEnum(Integer code, String desc){
        this.code = code;
        this.desc = desc;
    }

    public Integer getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static List<Integer> getAllCode(){
        List<Integer> flagList = new ArrayList<>();
        for(ExamineFlagEnum flagEnum : ExamineFlagEnum.values()){
            flagList.add(flagEnum.getCode());
        }
        return flagList;
    }

}
